//
//  MNDInvestmentDetailModel.h
//  minidai
//
//  Created by Steven.Yung on 2017/5/15.
//  Copyright © 2017年 迷你金服. All rights reserved.
//

#import "MNDBaseModel.h"
@class MNDInvestDetailBorrowModel;
@class MNDInvestmentDetailReturnModel;
@class MNDInvestmentDetailTenderModel;
@class MNDInvestDetailTansferModel;
@class MNDInvestDetailTransferListModel;

@interface MNDInvestmentDetailModel : MNDBaseModel
/*! 允许转让的金额 */
@property (copy, nonatomic) NSString *allow_transfer_principal;
/*! 投资期限*/
@property (copy, nonatomic) NSString *borrow_deadline;
/*! 年利率 */
@property (copy, nonatomic) NSString *borrow_year_apr;
/*! 赠利券利率 */
@property (copy, nonatomic) NSString *coupon_apr;
/*! 详情标题 */
@property (copy, nonatomic) NSString *detial_title;
/*! 预期收益 */
@property (copy, nonatomic) NSString *expect_income;
/*! 是否可以进行债权转让 1:是 -1:否  只有收益中才用此值 */
@property (copy, nonatomic) NSString *is_transfer;
/*! 续投利率+赠利券利率，即总收益 */
@property (copy, nonatomic) NSString *sum_apr;
/*! 投资日期 */
@property (copy, nonatomic) NSString *tender_add_time;
/*! 到期日期 */
@property (copy, nonatomic) NSString *borrow_end_date;
/*! 续投利率 */
@property (copy, nonatomic) NSString *tender_renew_reward_apr;
/*! 借款标识 */
@property (strong, nonatomic) MNDInvestDetailBorrowModel *borrow;
/*! 投资详细 */
@property (strong, nonatomic) MNDInvestmentDetailTenderModel *tender;
/*! 每一期的回款详细 */
@property (strong, nonatomic) NSArray *list;

//-----债转
@property (strong, nonatomic) MNDInvestDetailTansferModel *transfer_in;
@property (strong, nonatomic) NSArray *transfer;
/*! 1-提前还款 2-已转让  3-已结清 4-已展期 */
@property (copy, nonatomic) NSString *tender_status_icon;

@end

#pragma mark
#pragma mark - BorrowModel

@interface MNDInvestDetailBorrowModel : MNDBaseModel
/*! 借款标识 */
@property (copy, nonatomic) NSString *code;

@end

#pragma mark
#pragma mark - ReturnModel

@interface MNDInvestmentDetailReturnModel : MNDBaseModel
/*! 回款本息 */
@property (copy, nonatomic) NSString *amount;
/*! 加息奖励 */
@property (copy, nonatomic) NSString *coupon_reward;
/*! 到期日期 */
@property (copy, nonatomic) NSString *end_date;
/*! 回款利息 */
@property (copy, nonatomic) NSString *interest;
/*! 逾期费用 */
@property (copy, nonatomic) NSString *overduefee;
/*! 回款期数 */
@property (copy, nonatomic) NSString *periods;
/*! 回款本金 */
@property (copy, nonatomic) NSString *principal;
/*! 续投奖励 */
@property (copy, nonatomic) NSString *renew_reward;
/*! 实际回款日 */
@property (copy, nonatomic) NSString *return_time;
/*! 起息日 */
@property (copy, nonatomic) NSString *start_date;
/*! 回款状态:-1未回款-2回款中1已回款 */
@property (copy, nonatomic) NSString *status;
/*! 回款状态名称*/
@property (copy, nonatomic) NSString *status_name;
/*! 回款总额 */
@property (copy, nonatomic) NSString *sum_amount;
/*! 加息奖励 + 续投奖励 */
@property (copy, nonatomic) NSString *sum_reward;
/*! 管理费 */
@property (copy, nonatomic) NSString *tenderfee;


@end

#pragma mark
#pragma mark - TenderModel
@interface MNDInvestmentDetailTenderModel : MNDBaseModel
/*! 投标金额 */
@property (copy, nonatomic) NSString *tender_money;
/*! 续投金额 */
@property (copy, nonatomic) NSString *tender_renew_money;
/*!
 投资状态(投资状态-9待申请-8申请失败-7申请成功-6投标撤消-5
 放款申请-4放款中-3放款失败-2回款中-1收益中1已回款2已转让)
 */
@property (copy, nonatomic) NSString *tender_status;
/*! 1-提前还款 2-已转让  3-已结清 4-已展期 */
@property (copy, nonatomic) NSString *tender_status_icon;
//大于0则为已展期
@property (copy, nonatomic) NSString *borrow_extension_num;
/*! 债权转让ID */
@property (copy, nonatomic) NSString *transfer_id;
/*! 已转本金 */
@property (copy, nonatomic) NSString *transfer_principal;


#pragma mark - tender_status大于-1时的数据
/*! 已获收益 */
@property (copy, nonatomic) NSString *return_actual_already_income;
/*! 实际回款本息 */
@property (copy, nonatomic) NSString *return_actual_amount;
/*! 加息奖励 */
@property (copy, nonatomic) NSString *return_actual_coupon_reward;
/*! 回款利息 */
@property (copy, nonatomic) NSString *return_actual_interest;
/*! 逾期费用 */
@property (copy, nonatomic) NSString *return_actual_overduefee;
/*! 回款本金 */
@property (copy, nonatomic) NSString *return_actual_principal;
/*! 续投奖励 */
@property (copy, nonatomic) NSString *return_actual_renew_reward;
/*! 加息奖励 + 续投奖励 */
@property (copy, nonatomic) NSString *return_actual_sum_reward;
/*! 管理费 */
@property (copy, nonatomic) NSString *return_actual_tenderfee;
/*! 结清日期 */
@property (copy, nonatomic) NSString *return_actual_end_date;

#pragma mark - tender_status大于-1时的数据
/*! 待收本息 */
@property (copy, nonatomic) NSString *return_amount;
/*! 加息奖励 */
@property (copy, nonatomic) NSString *return_coupon_reward;
/*! 待收利息 */
@property (copy, nonatomic) NSString *return_interest;
/*! 逾期费用 */
@property (copy, nonatomic) NSString *return_overduefee;
/*! 已转本金 */
@property (copy, nonatomic) NSString *return_principal;
/*! 续投金额 */
@property (copy, nonatomic) NSString *return_renew_reward;
/*! 加息奖励 + 续投奖励 */
@property (copy, nonatomic) NSString *return_sum_reward;
/*! 管理费 */
@property (copy, nonatomic) NSString *return_tenderfee;
/*! 到期日期 */
@property (copy, nonatomic) NSString *return_end_date;
/*!  待收收益 */
@property (copy, nonatomic) NSString *return_already_income;

/**
 1显示查看合同按钮，-1不显示
 */
@property (nonatomic, copy) NSString *hide_contract;

@end

#pragma mark 
#pragma mark - TansferModel
@interface MNDInvestDetailTansferModel : MNDBaseModel

/*! 转出者 */
@property (copy, nonatomic) NSString *user_name;
/*! 转让本金 */
@property (copy, nonatomic) NSString *principal;
/*! 应计利息 */
@property (copy, nonatomic) NSString *accrued_interest;
/*! 折扣金额 */
@property (copy, nonatomic) NSString *discount;
/*！支付金额 */
@property (copy, nonatomic) NSString *pay_money;
/*! 转入时间 */
@property (copy, nonatomic) NSString *time;

@end

#pragma mark
#pragma mark - 回款期数

@interface MNDInvestDetailTransferListModel : MNDBaseModel

/*! 转让本金 */
@property (copy, nonatomic) NSString *principal;
/*! 应计利息 */
@property (copy, nonatomic) NSString *accrued_interest;
/*! 转让折扣 */
@property (copy, nonatomic) NSString *discount_apr;
/*! 已转本金 */
@property (copy, nonatomic) NSString *principaled;
/*! 转让费用 */
@property (copy, nonatomic) NSString *servefee;
/*! 转让收入 */
@property (copy, nonatomic) NSString *income;
/*! 转让状态 */
@property (copy, nonatomic) NSString *status;
/*! 转让日期 */
@property (copy, nonatomic) NSString *date;

@end
